package org.pz.service.impl;

import org.pz.dto.GoodsDto;
import org.pz.mapper.GoodsMapper;
import org.pz.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsServiceImpl implements GoodsService {

    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public GoodsDto getGoodsById(Integer id) {
        return goodsMapper.findGoodsById(id);
    }
}
